package org.thanos.demo.controller;

import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.thanos.demo.limit.RateLimit;

@RestController
public class DemoController {

    @RateLimit
    @GetMapping(path = "/test")
    public Object demo(ServerHttpRequest request) {
        return "Hello world";
    }

}
